typedef struct http_header_t {
    /* data */
    char method[16];
    char url[512];
    char version[16];
}http_head;

typedef struct req_line_t {
    /* data */
    char name[64];
    char value[128];
}req_line;

typedef struct req_header_t {
    /* data */
    req_line line[16];
    int num;
}req_head;

extern int is_chunk;

int req_handle(int sockid);